<core:SET width='200'>
<core:SET content="content">

<core:SET title="Teams profiles smanagement">
<core:WRAP file="/adm/adm.layout.html" placeholder="Content">

<core:include file="/adm/inc/inc.adm.tabs.html">

<h1 align="center"> </h1>


<form id="FilterForm" name="FilterForm" method="post" action="" runat="server">
<core:optional for="msg">
	<span class="message" runat="server"> {$msg} </span>
</core:optional>
	<hr>

 <!-- players filter -->
 <table width="100%" border="0" align="center" cellspacing="1" cellpadding="2">
 	<tr>
 		<td>
        	<table width="100%" border="0" align="center" cellspacing="1" cellpadding="2">
                <tr valign="top">
      				<td class="form_field" width="25%">
                        <input name="filter_gender" type="checkbox" id="filter_gender" value="gender" runat="server">
      					<label for="gender" runat="server">Gender League:</label>
      				</td>
      				<td class="form_field">
                        <select name="gender" id="gender" runat="server">
                        </select>
      				</td>
    			</tr>

                <tr valign="top">
      				<td class="form_field" width="25%">
                        <input name="filter_league_id" type="checkbox" id="filter_league_id" value="league_id" runat="server">
      					<label for="gender" runat="server">League:</label>
      				</td>
      				<td class="form_field">
                        <select name="league_id" id="league_id" runat="server">
                        </select>
      				</td>
    			</tr>

                <tr valign="top">
      				<td class="form_field">
                        <input name="filter_category1" type="checkbox" id="filter_category1" value="filter_category1" runat="server">
      					<label for="category1" runat="server">Sport category:</label>
      				</td>
      				<td class="form_field">
                        <select name="category1" id="category1" runat="server">
                        </select>
      				</td>
    			</tr>
                <tr valign="top">
      				<td class="form_field">
                        <input name="filter_category2" type="checkbox" id="filter_category2" value="filter_category2" runat="server">
      					<label for="category2" runat="server">Community category:</label>
      				</td>
      				<td class="form_field">
                        <select name="category2" id="category2" runat="server">
                        </select>
      				</td>
    			</tr>

        	</table>
 		</td>
 		<td>
        	<table width="100%" border="0" align="center" cellspacing="1" cellpadding="2">
                <tr valign="top">
      				<td class="form_field">
      					<label for="sort" runat="server">Sort By:</label>
      				</td>
      				<td class="form_field">
                        <select name="sort" id="sort" runat="server">
                        </select>
      				</td>
    			</tr>
                <tr valign="top">
      				<td class="form_field" colspan="2">
                     	<input name="apply" type="submit" id="apply" value="List teams" runat="server">
      				</td>
    			</tr>

        	</table>
 		</td>
 	</tr>
 </table>

  <!-- players list -->
  <table width="100%" border="0" align="center" cellspacing="1" cellpadding="2">
    <colgroup>
        <col id="ID">
        <col id="category">
        <col id="name">
        <col id="gender">
        <col id="league">
        <col id="action">
    </colgroup>
    <tr align="left">
    	<td colspan="3" class="whiteheader">
    		Manage team profiles
		</td>

<list:LIST id='List'>
        <td colspan="3" class="whiteheader_right" align="right">
            <page:navigator id="pagenav" items="10">
				Page: {$PageNumber} of {$TotalPages}
    			<page:first>First</page:first>
    			<page:prev>Prev</page:prev>
    			<page:list>
        			<page:number>
        			<page:elipses>...</page:elipses>
        			<page:separator> </page:separator>
    			</page:list>
    			<page:next>Next</page:next> <page:last>Last</page:last>
			</page:navigator>
    	</td>
     </tr>

    <tr class="header">
        <th>ID</th>
        <th>Category</th>
        <th>Team Name</th>
        <th>Gender</th>
        <th>League</th>
        <th> &nbsp; </th>
    </tr>
    <list:ITEM>
      <tr class="{$Parity}">
        <td>
            {$team_id}
        </td>
        <td>{$category_show}</td>
        <td>{$name}</td>
        <td>{$league_gender_show}</td>
        <td>{$league_show}</td>


        <td class="left">
        	<html:link url="/delete" param="team_id">Delete</html:link>
        	<html:link url="/edit" param="team_id">Edit</html:link>
        </td>
      </tr>
    </list:ITEM>


    <tr align="left">
    	<td colspan="3" class="whiteheader">
    		Manage team profiles
		</td>

        <td colspan="3" class="whiteheader_right" align="right">
            <page:navigator id="pagenav2" items="10">
				Page: {$PageNumber} of {$TotalPages}
    			<page:first>First</page:first>
    			<page:prev>Prev</page:prev>
    			<page:list>
        			<page:number>
        			<page:elipses>...</page:elipses>
        			<page:separator> </page:separator>
    			</page:list>
    			<page:next>Next</page:next> <page:last>Last</page:last>
			</page:navigator>
    	</td>
     </tr>
  </table>
</list:LIST>


<hr>

<html:link url="/create" param="team_id">Submit a new team profile </html:link>

</form>